from math import sqrt

def getWeight():
    wt = []
    Weights = list(input("请输入小朋友们的体重（用逗号分隔）:").split(","))
    wt=Weights
    print("输入：",wt)
    return wt

def avg(weights):
    w = 0
    over = []
    for num in weights:
        w = w + float(num)
    for num in weights:
        if float(num) > (w/len(weights)):
            over.append(num)
    print("输出：",over)
    return w/len(weights)

avg(getWeight())
